{include file="public:function"/}
{include file="public:config"/}

<div class="TopBox">

    <div class="w1200">
        <div class="top">
            <div class="top_logo"><a href="/"></a></div>
            <div class="top_search">

                <form class="search" id="form1" name="form1" action="{:url('home/Listn/search')}" method="post" target="_blank">
                    <input name="token" type="hidden" id="token"/>
                    <input type="text" class="SearchTxt"  value="{:input('keyword')}" placeholder="请输入搜索关键字" onfocus="if(value=='请输入搜索关键字'){value=''}" onblur="if(value==''){value='请输入搜索关键字';}" name="keyword"  id="qt"><input type="submit" class="SearchBtn" value="" name="button" id="button"></form>
            </div>
        </div>
        <div class="mainnav w1200">
            <span class="navbg"></span>
            <ul>
                {foreach $allmenu as $vo}
                    {if condition="$vo['id']==1"}
                        <li><a href="/" >{$vo.menu_name}</a></li>
                    {else/}
                        <li><a href="/home/Listn/index/{$vo.id}" >{$vo.menu_name}</a></li>
                    {/if}
                {/foreach}

            </ul>
        </div>
    </div>
    <script>
        try{
            var str = $(".curb",window.parent.document).text();
            var str1 = str.split(">")[1];
            if($.trim(str1)!=''){
                $(".mainnav li").each(function(){
                    if($(this).text().search($.trim(str1))>-1){
                        $(this).addClass("on");
                    }
                    else{

                    }
                })
            }
        }catch(e){}
    </script>

</div>